﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace ifunction.BaiduBCS.SDK
{
    /// <summary>
    /// Class StorageObjectSummaryCollection.
    /// </summary>
    [DataContract]
    public class StorageObjectSummaryCollection : StorageObjectCriteria
    {
        /// <summary>
        /// Gets or sets the items.
        /// </summary>
        /// <value>The items.</value>
        [DataMember(Name = "object_list")]
        public List<StorageObjectSummary> Items
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the total count.
        /// </summary>
        /// <value>The total count.</value>
        [DataMember(Name = "total_count")]
        public long TotalCount
        {
            get;
            set;
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="StorageObjectSummaryCollection"/> class.
        /// </summary>
        public StorageObjectSummaryCollection()
            : base()
        {
            this.Items = new List<StorageObjectSummary>();
        }
    }
}
